/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======================= NAVIGATION - MOBILE OPTIMIZED ======================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    flex-wrap: wrap;
}

.logo {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: bold;
    color: #2c5282;
    text-decoration: none;
    background: linear-gradient(135deg, #14a085 0%, #7dd3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0.5rem 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem;
    display: block;
}

.nav-links a:hover {
    color: #667eea;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0.5rem;
    background: linear-gradient(135deg, #14a085 0%, #2dd4bf 50%, #7dd3fc 100%);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: calc(100% - 1rem);
}

/* ======================= HERO SECTION - MOBILE OPTIMIZED ======================= */
.hero {
    min-height: 70vh;
    height: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 20px 40px;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d7377 0%, #14a085 25%, #2dd4bf 50%, #7dd3fc 75%, #e0f7fa 100%);
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: clamp(50px, 10vw, 80px);
    height: clamp(50px, 10vw, 80px);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: clamp(40px, 8vw, 60px);
    height: clamp(40px, 8vw, 60px);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.circle-3 {
    width: clamp(60px, 12vw, 100px);
    height: clamp(60px, 12vw, 100px);
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.circle-4 {
    width: clamp(30px, 6vw, 40px);
    height: clamp(30px, 6vw, 40px);
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.pulse-dot {
    position: absolute;
    width: clamp(6px, 1.5vw, 10px);
    height: clamp(6px, 1.5vw, 10px);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.pulse-dot:nth-child(5) {
    top: 25%;
    left: 30%;
    animation-delay: 0s;
}

.pulse-dot:nth-child(6) {
    top: 70%;
    left: 60%;
    animation-delay: 0.5s;
}

.pulse-dot:nth-child(7) {
    top: 40%;
    right: 20%;
    animation-delay: 1s;
}

.pulse-dot:nth-child(8) {
    bottom: 30%;
    left: 50%;
    animation-delay: 1.5s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(50px, 15vw, 100px);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3e%3cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%23ffffff'%3e%3c/path%3e%3cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' fill='%23ffffff'%3e%3c/path%3e%3cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%23ffffff'%3e%3c/path%3e%3c/svg%3e") repeat-x;
    background-size: 1200px 120px;
    animation: wave 10s linear infinite;
}

@keyframes wave {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 1200px;
    }
}

.popup-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1.5s ease-out;
}

.popup-text h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.popup-text p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================= CHALLENGE SECTION - MOBILE OPTIMIZED ======================= */
.challenge-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.section-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.text-content h2 {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.text-content h3 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.text-content p {
    font-family: 'Fira Sans', sans-serif;
    font-size: clamp(0.95rem, 2.5vw, 1rem);
    color: #4a5568;
    font-weight: 100;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: clamp(0.95rem, 2.5vw, 1rem);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.image-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    background: white;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.placeholder-icon {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 1rem;
}

.image-placeholder p {
    color: #718096;
    font-weight: 500;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* ======================= SOLUTION SECTION - MOBILE OPTIMIZED ======================= */
.solution-section {
    padding: 40px 0;
    background: linear-gradient(-45deg, #f8fafc 0%, #e2e8f0 100%);
}

.solution-content h2 {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.solution-content h3 {
    font-size: clamp(2rem, 7vw, 4rem);
    color: #2c5282;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.solution-content p {
    font-size: clamp(0.95rem, 2.5vw, 1rem);
    color: #4a5568;
    line-height: 1.7;
}

/* ======================= DROPDOWN MENU - MOBILE OPTIMIZED ======================= */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, rgba(20, 160, 133, 0.1) 0%, rgba(125, 211, 252, 0.1) 100%);
    color: #14a085;
    padding-left: 25px;
}

.dropdown-menu a.active {
    color: #14a085;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(20, 160, 133, 0.05) 0%, rgba(125, 211, 252, 0.05) 100%);
}

.has-dropdown > a {
    position: relative;
}

.has-dropdown > a::before {
    content: ' ▾';
    font-size: 0.75em;
    margin-left: 6px;
    position: relative;
    display: inline;
}

.has-dropdown > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(135deg, #14a085 0%, #2dd4bf 50%, #7dd3fc 100%);
    transition: width 0.3s ease;
}

.has-dropdown > a:hover::after {
    width: 100%;
}

/* ======================= CONTACT PAGE - MOBILE OPTIMIZED ======================= */
.contact-hero {
    background: linear-gradient(135deg, #0d7377 0%, #14a085 25%, #2dd4bf 50%, #7dd3fc 75%, #e0f7fa 100%);
    padding: 80px 20px 60px;
    text-align: center;
    color: white;
}

.contact-hero h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-hero p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.contact-container {
    max-width: 800px;
    margin: -40px auto 80px;
    padding: 0 15px;
}

.contact-form-wrapper {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.form-section-title {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 600;
}

.category-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 10px;
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-btn:hover {
    border-color: #14a085;
    color: #14a085;
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, #14a085 0%, #2dd4bf 100%);
    border-color: #14a085;
    color: white;
    box-shadow: 0 4px 15px rgba(20, 160, 133, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2d3748;
    font-weight: 600;
    font-size: clamp(0.9rem, 2.5vw, 0.95rem);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: clamp(0.95rem, 2.5vw, 1rem);
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #14a085;
    background: white;
    box-shadow: 0 0 0 3px rgba(20, 160, 133, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, #14a085 0%, #2dd4bf 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: clamp(1rem, 3vw, 1.1rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(20, 160, 133, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(20, 160, 133, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.required {
    color: #e53e3e;
    margin-left: 3px;
}

/* ======================= TECHNOLOGY PAGE - MOBILE OPTIMIZED ======================= */
.tech-hero-combined {
    background: linear-gradient(135deg, #0d7377 0%, #14a085 25%, #2dd4bf 50%, #7dd3fc 75%, #e0f7fa 100%);
    padding: 80px 20px 60px;
}

.tech-hero-content {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.tech-hero-content h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tech-hero-content p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.tech-hero {
    background: linear-gradient(135deg, #0d7377 0%, #14a085 25%, #2dd4bf 50%, #7dd3fc 75%, #e0f7fa 100%);
    padding: 80px 20px 0px;
    text-align: center;
    color: white;
}

.tech-hero h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tech-hero p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.panels-section {
    padding: 0px 0 60px 0;
    background: linear-gradient(0deg, #0d7377 0%, #14a085 25%, #2dd4bf 50%, #7dd3fc 75%, #e0f7fa 100%);
}

.panels-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.tech-panel {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
}

.tech-panel:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.panel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    z-index: 1;
}

.panel-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.panel-1 .panel-image {
    background: linear-gradient(135deg, #14a085 0%, #2dd4bf 100%);
}

.panel-2 .panel-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.panel-3 .panel-image {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.panel-4 .panel-image {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.panel-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
    text-align: center; 
}

.panel-title {
    font-size: clamp(1.75rem, 6vw, 3rem);
    color: white;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* ======================= TABLET BREAKPOINT (768px+) ======================= */
@media (min-width: 768px) {
    .nav-container {
        padding: 0 20px;
        height: 70px;
    }

    .nav-links {
        gap: 2rem;
    }

    .hero {
        min-height: 80vh;
        padding: 100px 20px 60px;
    }

    .challenge-section,
    .solution-section {
        padding: 50px 0;
    }

    .section-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .contact-hero {
        padding: 120px 20px 80px;
    }

    .contact-form-wrapper {
        padding: 50px 40px;
    }

    .category-buttons {
        gap: 15px;
        margin-bottom: 40px;
    }

    .category-btn {
        min-width: 140px;
        padding: 15px 25px;
    }

    .form-group {
        margin-bottom: 25px;
    }

    .form-group textarea {
        min-height: 150px;
    }

    .submit-btn {
        padding: 16px 30px;
    }

    .tech-hero-combined,
    .tech-hero {
        padding: 120px 20px 80px;
    }

    .tech-hero-content {
        margin-bottom: 60px;
    }

    .tech-hero p {
        margin: 0 auto 60px auto;
    }

    .panels-section {
        padding: 0px 0 80px 0;
    }

    .panels-container {
        padding: 0 20px;
        gap: 25px;
    }

    .tech-panel {
        height: 350px;
    }

    .panel-content {
        padding: 25px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 5px;
        padding-left: 20px;
        background: transparent;
    }
    
    .dropdown-menu a {
        padding: 8px 16px;
    }
    
    .has-dropdown > a::after {
        display: none;
    }
}

/* ======================= DESKTOP BREAKPOINT (968px+) ======================= */
@media (min-width: 968px) {
    .panels-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .tech-panel {
        height: 400px;
    }

    .panel-content {
        padding: 30px;
    }

    /* Restore desktop dropdown behavior */
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        min-width: 200px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border-radius: 10px;
        padding: 10px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .has-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu a {
        padding: 12px 20px;
    }

    .has-dropdown > a::after {
        display: block;
    }
}

/* ======================= LARGE DESKTOP (1200px+) ======================= */
@media (min-width: 1200px) {
    .category-buttons {
        flex-wrap: nowrap;
    }
}

/* ===================== FOOTER Info ========================== */
/* Footer Bar Styling */
.footer-bar {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 20px 0;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    color: rgba(255, 255, 255, 0.9);
}

.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.footer-social a:hover {
    color: #14a085;
    transform: translateY(-2px);
}

.footer-social svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-copyright {
        order: 2;
    }

    .footer-social {
        order: 1;
    }
}